<template>
  <section>
    <el-tabs v-model="tabName">
      <el-tab-pane label="广告管理" name="first">
        <ad-position  v-if="tabName === 'first'" ></ad-position>
      </el-tab-pane>
      <el-tab-pane label="广告分类" name="second" >
        <ad-type v-if="tabName === 'second'"/>
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import adPosition from '../adPosition/index.vue'
  import appAd from '../appAd/index'
  import adType from '../adType/index'
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  import Vue from 'vue'//后续添加属性，需要vue联动
  import errHandler from '@/assets/errHandler'
  export default {
    name: "index",
    components:{adType,appAd,adPosition},
    data(){
      return {
        tabName:'first',
      }
    },
    mounted(){
    },
    created(){
    },
    methods: {
      ...mapActions({
        fetch: 'fetch'
      }),
    }
  }
</script>

<style scoped>

</style>
